//
//  DynamicSignalCell.h
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 8/13/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h> 
#import "Signal.h"
#import "SignalPhase.h"

@interface DynamicSignalCell : UITableViewCell
@property (nonatomic,retain) Signal *signal;
@property (nonatomic,retain) UILabel *signalNameLabel;
@property (nonatomic,retain) UILabel *activePhaseLabel;
@property (nonatomic,retain) UILabel *subActivePhaseLabel;
//@property (nonatomic,retain) UILabel *nextPhaseLabel;
@property (nonatomic) int timingRing1GraphPositionX;
@property (nonatomic) int timingRing2GraphPositionX;
@property (assign) int offsetPhaseTime;
@property (nonatomic,retain) NSMutableArray *labelList;

- (id)initWithSignal:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier signal:(Signal*)signal;
- (void)drawSignalGraph;
- (void)updateActivePhaseLabelWithMasterTime:(int)masterTime;

@end
